package com.mind.invoice.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mind.invoice.mapper.AjReportInvoiceMapper;
import com.mind.invoice.domain.AjReportInvoice;
import com.mind.invoice.service.IAjReportInvoiceService;

/**
 * 发票Service业务层处理
 * 
 * @author today
 * @date 2025-04-25
 */
@Service
public class AjReportInvoiceServiceImpl implements IAjReportInvoiceService 
{
    @Autowired
    private AjReportInvoiceMapper ajReportInvoiceMapper;

    /**
     * 查询发票
     * 
     * @param id 发票主键
     * @return 发票
     */
    @Override
    public AjReportInvoice selectAjReportInvoiceById(Long id)
    {
        return ajReportInvoiceMapper.selectAjReportInvoiceById(id);
    }

    /**
     * 查询发票列表
     * 
     * @param ajReportInvoice 发票
     * @return 发票
     */
    @Override
    public List<AjReportInvoice> selectAjReportInvoiceList(AjReportInvoice ajReportInvoice)
    {
        return ajReportInvoiceMapper.selectAjReportInvoiceList(ajReportInvoice);
    }

    /**
     * 新增发票
     * 
     * @param ajReportInvoice 发票
     * @return 结果
     */
    @Override
    public int insertAjReportInvoice(AjReportInvoice ajReportInvoice)
    {
        return ajReportInvoiceMapper.insertAjReportInvoice(ajReportInvoice);
    }

    /**
     * 修改发票
     * 
     * @param ajReportInvoice 发票
     * @return 结果
     */
    @Override
    public int updateAjReportInvoice(AjReportInvoice ajReportInvoice)
    {
        return ajReportInvoiceMapper.updateAjReportInvoice(ajReportInvoice);
    }

    /**
     * 批量删除发票
     * 
     * @param ids 需要删除的发票主键
     * @return 结果
     */
    @Override
    public int deleteAjReportInvoiceByIds(Long[] ids)
    {
        return ajReportInvoiceMapper.deleteAjReportInvoiceByIds(ids);
    }

    /**
     * 删除发票信息
     * 
     * @param id 发票主键
     * @return 结果
     */
    @Override
    public int deleteAjReportInvoiceById(Long id)
    {
        return ajReportInvoiceMapper.deleteAjReportInvoiceById(id);
    }
}
